<?
require("config.php");
$location_status .= "| Enquire";
$show_backnav = "product_menu";
$menuname = array(
	"Info",
	"Pictures",
	"Color",
	"Size",
	"Specification",
	"Features",
	"Accessories",
	"Packaging",
);

$menutarget = array(
	"enquire",
	"enquire_pictures",
	"enquire_color",
	"enquire_size",
	"enquire_specification",
	"enquire_features",
	"enquire_accessories",
	"enquire_packaging",
);

$menutype = 2;

if (NULL!=$action){

   $Query = "delete from $table where id=$id Limit 1";

   myQuery($Query);


   header("location:" . $rela_path . "share/msg.php?v=3");

   exit();

}


if (!checkRecord($table,$id)){

	header("location:" . $rela_path . "share/msg.php?v=9002");
  
}

$Query = "select 
item01_accessories_text, 
item02_accessories_text, 
item03_accessories_text, 
item04_accessories_text, 
item05_accessories_text, 
item06_accessories_text, 
item07_accessories_text, 
item08_accessories_text, 
item09_accessories_text, 
item10_accessories_text,
item01_accessories_photo, 
item02_accessories_photo, 
item03_accessories_photo, 
item04_accessories_photo, 
item05_accessories_photo, 
item06_accessories_photo, 
item07_accessories_photo, 
item08_accessories_photo, 
item09_accessories_photo, 
item10_accessories_photo 
from pro_basic where id=$id Limit 1";
$r = myQuery($Query);

$Item = array();
$Pic = array();
$Item[0]= $r[0][0];
$Item[1]= $r[0][1];
$Item[2]= $r[0][2];
$Item[3]= $r[0][3];
$Item[4]= $r[0][4];
$Item[5]= $r[0][5];
$Item[6]= $r[0][6];
$Item[7]= $r[0][7];
$Item[8]= $r[0][8];
$Item[9]= $r[0][9];
$Pic[0]= $r[0][10];
$Pic[1]= $r[0][11];
$Pic[2]= $r[0][12];
$Pic[3]= $r[0][13];
$Pic[4]= $r[0][14];
$Pic[5]= $r[0][15];
$Pic[6]= $r[0][16];
$Pic[7]= $r[0][17];
$Pic[8]= $r[0][18];
$Pic[9]= $r[0][19];

$dir = $rela_path . $PIC_DIR . $table . "/";

require($rela_path . "inc/header.php");

?>

<!--Content Start-->
<form action="" method="post" enctype="multipart/form-data" name="form1">  
<!--hidden filed-->
<input name="Code" type="hidden" value="<?print($Code)?>">
<input name="action" type="hidden" value="delete">

  <table width="95%" border="0" align="center">
                      <tr> 
                        
      <td>&nbsp; </td>
                      </tr>
                      <tr> 
                        
      <td> <br>
        <table border="0" cellspacing="0" cellpadding="2">

<?for ($i=0;$i<count($Item);$i++){?>
          <tr> 
            <td><?print($i+1)?>. </td>
            <td>
			<?print($Item[$i])?>
		  </tr>
		  <tr>
		    <td>&nbsp;</td>
			<td>
			<?if ($Pic[$i]) print("<img src=" . $dir. $Pic[$i] . ">")?>
			</td>
          </tr>
<?}?>
        </table>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p></td>
                      </tr>
                    </table>
                    </form>
            <!--Content End-->
            <?
require($rela_path . "inc/footer.php");
?>
        